-
Notifications
You must be signed in to change notification settings - Fork 392
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor soap client #107
Refactor soap client #107
Conversation
} | ||
|
||
type PingRequest struct { | ||
// XMLName xml.Name `xml:"http://example.com/service.xsd PingRequest"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some problems with xml unmarshaling. If I uncomment the following XMLName I get error:
xml: name "request" in tag of soap.Ping.Request conflicts with name "PingRequest" in *soap.PingRequest.XMLName
@c4milo Do you know what problem can it be? To me it looks like a xml package problem with namespaces.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it similar to this issue? #17 If so, yes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I see, it sound similar. Thanks 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, feel free to create a tag before merging this PR so that people can still use the old API. The XML namespacing issue can be done in another PR. Thanks!
soap
.closes Suggestions for more idiomatic code #106